<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增要素')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-wzs-add">

        <input name="c_type" class="form-control hidden" type="text" th:value="${c_type}">

        <div class="form-group">
            <label class="col-sm-3 control-label">要素名称：</label>
            <div class="col-sm-8">
                <input name="aCname" required class="form-control" type="text">

            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">权重系数：</label>
            <div class="col-sm-8">
                <input name="aCweight" required class="form-control" type="number">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea id="remark" name="remark" class="form-control"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "system/wzs"
    $("#form-wzs-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-wzs-add').serialize());
        }
    }
</script>
</body>
</html>